package com.teradata.config;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.CommandLineRunner;
import org.springframework.stereotype.Component;

/**
 * run方法的args是来源于application的main方法的
 */

@Component
public class CacheInit implements CommandLineRunner {

    public static final Logger logger = LoggerFactory.getLogger(CacheInit.class);

    @Override
    public void run(String... args) throws Exception {
        System.out.println(">>Cache inited<<");
        logger.info("cache init");
    }
}
